mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-01 00:00:35 -04:00
using /get endpoint instead of /
This commit is contained in:
parent
cd876773ec
commit
712d0f604a
@ -3,7 +3,7 @@
|
||||
module Requests
|
||||
module Get
|
||||
def test_http_get
|
||||
uri = build_uri("/")
|
||||
uri = build_uri("/get")
|
||||
response = HTTPX.get(uri)
|
||||
verify_status(response, 200)
|
||||
verify_body_length(response)
|
||||
|
@ -3,7 +3,7 @@
|
||||
module Requests
|
||||
module Head
|
||||
def test_http_head
|
||||
uri = build_uri("/")
|
||||
uri = build_uri("/get")
|
||||
response = HTTPX.head(uri)
|
||||
verify_status(response, 200)
|
||||
verify_body_length(response, 0)
|
||||
|
@ -4,7 +4,7 @@ module Requests
|
||||
module IO
|
||||
def test_http_io
|
||||
io = origin_io
|
||||
uri = build_uri("/")
|
||||
uri = build_uri("/get")
|
||||
response = HTTPX.get(uri, io: io)
|
||||
verify_status(response, 200)
|
||||
verify_body_length(response)
|
||||
|
@ -33,7 +33,7 @@ module Requests
|
||||
end
|
||||
|
||||
def test_http_buffer_to_custom
|
||||
uri = build_uri("/")
|
||||
uri = build_uri("/get")
|
||||
custom_body = Class.new do
|
||||
attr_reader :file
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user