forked from webmachine/webmachine
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix two problems with the unit tests for R16: 1. Code failed to compile due to warnings caused by calls to the deprecated crypto:md5/1 with compiler option warnings_as_errors in effect. Use the existing {d,old_hash} erlc define to call crypto:hash/2 instead on Erlang versions newer than R15B01. 2. Tests involving POSTs and status code 303 redirects failed due to a missing {autodirect,false} option on httpc:request/4 calls. In older versions of Erlang httpc didn't redirect for such calls, but that changed in commit 4b9b5cc6 in the Erlang/OTP github repository, which fixed OTP-10765 as part of the R16B release. Also verify that the presence of the {autoredirect,false} option doesn't break the tests for older R15 or R14 releases.
- Loading branch information
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters