Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Is the Content-Type Header Correct?

#67

I just ran into an issue where my newly created RightScale server with Apache was failing on all Request from Objective Resource.

I tracked it down to the setting of the Content-Type header in

+(NSMutableURLRequest ) requestWithUrl:(NSURL )url andMethod:(NSString*)method {

.....

[request setValue:@"application/xml" forHTTPHeaderField:@"Content-Type"];

It seems that Content-Type is meant to indicate the type of data being sent. If you test from a browser you will see that no Content-Type headers are sent for GET request.

http://www.w3.org/Protocols/rfc2...

Commenting it out has me working again.

Reported by David Clements · May 7th, 2009 @ 05:34 PM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.