XFire

NPE raised in client if "Content-Type" is missing from http response

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2
  • Fix Version/s: 1.2.1
  • Component/s: Core
  • Labels:
    None
  • Number of attachments :
    1

Description

If there is no Content-Type header, the PostMethod instance used in CommonsHttpMessageSender will return null for getResponseHeader(). The code was assuming that this always returned non-null. I think this is due to a miss-match between PostMethod actual and expected behavior.

I've attached a svn diff that fixes this.

Activity

Hide
Dan Diephouse added a comment -

Applied. Thanks.

Show
Dan Diephouse added a comment - Applied. Thanks.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: