au icon indicating copy to clipboard operation
au copied to clipboard

Mime check for urls revisited

Open majkinetor opened this issue 8 years ago • 4 comments

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 avatar Jun 19 '17 06:06 majkinetor

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.

AdmiringWorm avatar Jul 07 '17 17:07 AdmiringWorm

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
}

majkinetor avatar Jul 08 '17 07:07 majkinetor

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

AdmiringWorm avatar Jul 08 '17 19:07 AdmiringWorm

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

FranklinYu avatar Dec 07 '18 15:12 FranklinYu