File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 82
82
83
83
(defn base-req []
84
84
{:scheme :http
85
- :server-name ( str " localhost: " ( current-port ))
86
- :port (current-port )})
85
+ :server-name " localhost"
86
+ :server- port (current-port )})
87
87
88
88
(defn request [req]
89
89
(core/request (merge (base-req ) req)))
166
166
(let [client-opts {:request-method :get
167
167
:uri " /get"
168
168
:scheme :https
169
- :server-name ( str " localhost: " ( current-https-port ))
170
- :port (current-https-port )}]
169
+ :server-name " localhost"
170
+ :server- port (current-https-port )}]
171
171
(is (thrown? javax.net.ssl.SSLException
172
172
(request client-opts)))
173
173
(let [resp (request (assoc client-opts :insecure? true ))]
186
186
:http-url (str " http://localhost:" (current-port ) " /post" )
187
187
:request-method :post
188
188
:uri " /post"
189
- :server-name ( str " localhost: " ( current-port ))
190
- :port (current-port )}
189
+ :server-name " localhost"
190
+ :server- port (current-port )}
191
191
(-> resp
192
192
:request
193
193
(dissoc :body ))))))
You can’t perform that action at this time.
0 commit comments