Fixes two bugs: % git branch | egrep '\*' * master % git log | head -1 commit 656aa69 % dialyzer -Wno_return ebin/*beam deps/*/ebin/*beam Checking whether the PLT /Users/fritchie/.dialyzer_plt is up-to-date... yes Compiling some key modules to native code... done in 0m21.94s Proceeding with analysis... webmachine_request.erl:815: The pattern 'http' can never match the type string() webmachine_request.erl:820: The pattern 'https' can never match the type string() Unknown functions: compile:forms/2 fdsrv:bind_socket/2 fdsrv:start/0 fdsrv:stop/0 done in 0m15.44s done (warnings were emitted)
minor but fun, so why not?
The idea behind this extension is that in some cases it is worthwhile to obscure the actual server name (for example, for an extra layer of attack protection) or change it any other way. Of course this is doable with some HTTP proxies such as nginx. However, in case of nginx (for example) one needs to build it with a custom third-party module, which complicates the deployment insanely. Besides, I believe there is a slight performance penalty when rewriting HTTP headers. So, why not generate them the way you need them right from the beginning? This change allows setting custom server name by setting server_name environment variable for webmachine application. By default, original server name will be used.
…mal) This prevents a very common error (when you're doing a lot of chunked uploads) from filling up the logs.
…ogg. Sorted the types based on file name extension
…an a path string
…ected not the full path. After viewing at the sources, i saw that you set the FullPath and not the NewPath in line 441. I changed this to the NewPath.