Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Mime check for urls revisited #83

Open
majkinetor opened this issue Jun 19, 2017 · 4 comments
Open

Mime check for urls revisited #83

majkinetor opened this issue Jun 19, 2017 · 4 comments

Comments

@majkinetor
Copy link
Owner

Perhaps MIME check should work only on URL32/64 urls, and not on others.

That would allow for extra URLs to be checked for existence: ReleaseNotes, Manuals etc.

Update option NoMimeCheck doesn't sound like an idea because you certainly want it for subset of URLs.

/cc @AdmiringWorm

@majkinetor majkinetor changed the title mime check for urls revisited Mime check for urls revisited Jun 19, 2017
@AdmiringWorm
Copy link
Contributor

Personally I think it's fine if AU checks the Mime Type for every url variable that starts with URL.
But, just thinking out loud, perhaps adding something like URLNAMEDisableCheck = $true and try detecting that could alleviate some pain.

@majkinetor
Copy link
Owner Author

majkinetor commented Jul 8, 2017

Well, I see now that iwr -Method Head does the same thing as integrated AU stuff, so its actually not a big deal to.

URLNAMEDisableCheck = $true I don't like, because its extra thing, but some special char could do the trick such as _.

So

$Latest = {
   URL32 = ... # check mime and existence 
   URL_32 = ... # do not check mime but check existence 
   MyUrl = ... # do not check anything
}

@AdmiringWorm
Copy link
Contributor

I agree, using a special character to disable the mime check would be better.

@FranklinYu
Copy link

If this is implemented, we can also check links in *.nuspec such as projectUrl and licenseUrl.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants