Skip to content

Commit

Permalink
Merge pull request #6 from aristotelesbr/development
Browse files Browse the repository at this point in the history
fix: added content_type method
  • Loading branch information
aristotelesbr authored Nov 17, 2023
2 parents cab41e3 + 5554555 commit 80518c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
7 changes: 7 additions & 0 deletions lib/lenna/router/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ def put_headers(headers)
headers.each { |key, value| put_header(key, value) }
end

# This method will get the content type.
#
# @return [String] the content type
#
# @api public
def content_type = header('Content-Type')

# This method will delete the header.
# @param header [String] the header name
#
Expand Down
13 changes: 0 additions & 13 deletions test/test_lennarb.rb

This file was deleted.

0 comments on commit 80518c4

Please sign in to comment.