Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saviorand committed Sep 14, 2024
1 parent 9ece161 commit 4935d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightbug_http/header.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ struct ResponseHeader:
or self.__status_code == StatusCode.TEMPORARY_REDIRECT
or self.__status_code == StatusCode.PERMANENT_REDIRECT

fn set_status_message(inout self, message: Bytes) -> Self:
fn set_status_message_bytes(inout self, message: Bytes) -> Self:
self.__status_message = message
return self

Expand Down Expand Up @@ -644,7 +644,7 @@ struct ResponseHeader:
return Span[UInt8, __lifetime_of(self)](self.__trailer)

fn trailer_str(self) -> String:
return String(self.trailer())
return StringSlice[__lifetime_of(self)](unsafe_from_utf8_ptr=self.__trailer.unsafe_ptr(), len=len(self.__trailer))

fn set_location_bytes(inout self, location: Bytes) -> Self:
self.__location = location
Expand Down

0 comments on commit 4935d51

Please sign in to comment.