Skip to content

Commit

Permalink
Merge pull request #455 from pooza/1_13_26
Browse files Browse the repository at this point in the history
1.13.26
  • Loading branch information
pooza committed Oct 1, 2023
2 parents 42b39ac + cdf2cf5 commit fd1927d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/lib.yaml
@@ -1,5 +1,5 @@
package:
version: 1.13.25
version: 1.13.26
url: https://github.com/pooza/ginseng-core
authors:
- Tatsuya Koishi
Expand All @@ -20,6 +20,8 @@ http:
retry:
limit: 5
seconds: 1
timeout:
seconds: 30
line:
token: null
urls:
Expand Down
2 changes: 2 additions & 0 deletions lib/ginseng/error.rb
@@ -1,3 +1,5 @@
require 'pp' # rubocop:disable Lint/RedundantRequireStatement

module Ginseng
class Error < StandardError
include Package
Expand Down
1 change: 1 addition & 0 deletions lib/ginseng/http.rb
Expand Up @@ -115,6 +115,7 @@ def upload(uri, file, options = {})
url: uri.normalize.to_s,
headers: headers,
payload: payload,
timeout: @config['/http/timeout/seconds'],
)
log(method: method, multipart: true, url: uri, status: response.code, start: start)
raise GatewayError, "Bad response #{response.code}" unless response.code < 400
Expand Down

0 comments on commit fd1927d

Please sign in to comment.