Skip to content

Commit

Permalink
Small patch to fix problem ocurred when creating an Issue with otcopi…
Browse files Browse the repository at this point in the history
… and Github returns a 201 code
  • Loading branch information
jpgriffo committed Feb 16, 2011
1 parent 658ded1 commit ac18018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octopi/api.rb
Expand Up @@ -190,7 +190,7 @@ def submit(path, params = {}, klass=nil, format = :yaml, &block)
# puts resp.code.inspect
raise NotFound, klass || self.class if resp.code.to_i == 404
raise APIError,
"GitHub returned status #{resp.code}" unless resp.code.to_i == 200
"GitHub returned status #{resp.code}" unless ((resp.code.to_i == 200) || (resp.code.to_i == 201))
# FIXME: This fails for showing raw Git data because that call returns
# text/html as the content type. This issue has been reported.

Expand Down

0 comments on commit ac18018

Please sign in to comment.