Skip to content

Commit ee2ecb2

Browse files
committed
Fix constant names.
1 parent ae3d6da commit ee2ecb2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/async/rest/wrapper/generic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def wrap_response(response)
5353
return response
5454
end
5555

56-
class Unsupported < HTTP::Body::Wrapper
56+
class Unsupported < ::Protocol::HTTP::Body::Wrapper
5757
def join
5858
raise UnsupportedError, super
5959
end

lib/async/rest/wrapper/json.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ def prepare_request(request, payload)
3333
if payload
3434
request.headers['content-type'] = @content_type
3535

36-
request.body = HTTP::Body::Buffered.new([
36+
request.body = ::Protocol::HTTP::Body::Buffered.new([
3737
::JSON.dump(payload)
3838
])
3939
end
4040
end
4141

42-
class Parser < HTTP::Body::Wrapper
42+
class Parser < ::Protocol::HTTP::Body::Wrapper
4343
def join
4444
::JSON.parse(super, symbolize_names: true)
4545
end

0 commit comments

Comments
 (0)