Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

PUT requests with Reel always send 415 #67

Closed
nicholaswyoung opened this Issue · 2 comments

2 participants

@nicholaswyoung

Anytime I use the Reel adapter and try to issue a PUT request, I get:

Nicholass-MacBook-Pro:webmachine-ruby-test nicholaswyoung$ curl -F "media=@/Users/nicholaswyoung/Music/CC000.aif" -X PUT -v http://localhost:3000/
* About to connect() to localhost port 3000 (#0)
*   Trying ::1...
* Connection refused
*   Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 3000 (#0)
> PUT / HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: localhost:3000
> Accept: */*
> Content-Length: 317741272
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=----------------------------b58c2ffa04f9
> 
< HTTP/1.1 415 Unsupported Media Type
< Content-Type: text/html
< Vary: Accept
< Content-Length: 0
* HTTP error before end of send, stop sending
< 
* Closing connection #0

regardless of the Content Type I send. With WEBrick, I receive the expected 100-Continue, and the upload works normally. Any idea, @tarcieri? I'm on ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0] .

@tarcieri tarcieri referenced this issue
Merged

Reel #51

@bernd
Collaborator

I am unable to reproduce this. Can please test with the current master to see if it works for you?

Please send a code example if it still fails so we can reproduce it. Thanks!

@nicholaswyoung

I apologize for the extremely late response. It seems master has unwittingly resolved the bug. Everything is working well now.

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