Skip to content

Commit

Permalink
Prefer squigly heredocs. (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 11, 2024
1 parent ee60354 commit e72cb69
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 116 deletions.
6 changes: 3 additions & 3 deletions test/webrick/test_filehandler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ def get_res_body(res)
end

def make_range_request(range_spec)
msg = <<-END_OF_REQUEST
msg = <<~HTTP.gsub("\n", "\r\n")
GET / HTTP/1.0
Range: #{range_spec}
END_OF_REQUEST
return StringIO.new(msg.gsub(/^ {6}/, "").gsub("\n", "\r\n"))
HTTP
return StringIO.new(msg)
end

def make_range_response(file, range_spec)
Expand Down
Loading

0 comments on commit e72cb69

Please sign in to comment.