Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure that EnableDynamicHttpCompression.cmd has an EXIT 0 to force t…

…he indication of success.
  • Loading branch information...
commit 94f0b7860d8afcdb6ddb4a7cce4712c582f5777a 1 parent 69692a8
Jeff Handley authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  Scripts/EnableDynamicHttpCompression.cmd
View
2  Scripts/EnableDynamicHttpCompression.cmd
@@ -3,3 +3,5 @@
REM Enable Dynamic HTTP Compression for application/* mime types.
%windir%\system32\inetsrv\appcmd.exe set config /section:urlCompression /doDynamicCompression:True /commit:apphost
%windir%\system32\inetsrv\appcmd.exe set config /section:system.webServer/httpCompression /+"dynamicTypes.[mimeType='application/*',enabled='True']" /commit:apphost
+
+EXIT 0

I don't think this is going to work. The problem is the appcmd.exe invocation are resulting in error when the commands have already been run. We're going to have to be a bit smarter about this, I suspect. I'll play with it a bit.

Well, it looks like this change will work, but using EXIT means it will take the parent .cmd down with it. I think we'd be better of using SET ERRORLEVEL=0 instead.

Ah, after looking into this a bit more, it seems like the proper thing to do is EXIT /B 0.

Updated. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Please sign in to comment.
Something went wrong with that request. Please try again.