[GH-ISSUE #480] pages/index.vue 1736 #188

Closed
opened 2026-03-16 13:57:28 +03:00 by kerem · 2 comments
Owner

Originally created by @kenzyyang on GitHub (Jan 10, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/480

Describe the bug
while this.response.headers is undefined,it will cause a error.
image

Originally created by @kenzyyang on GitHub (Jan 10, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/480 **Describe the bug** while this.response.headers is undefined,it will cause a error. ![image](https://user-images.githubusercontent.com/27340803/72123831-9cb1c700-339d-11ea-8219-e5e456117c2f.png)
kerem 2026-03-16 13:57:28 +03:00
Author
Owner

@AndrewBastin commented on GitHub (Jan 11, 2020):

Well, according to the HTTP spec, you can't exactly have a response without headers, so I don't see why it will become undefined. The only thing is that response can choose to not have a Content-Type, but we do handle that case as seen from the above snippet

If you could bring into attention a scenario where that is possible, we will refactor the code.

<!-- gh-comment-id:573352613 --> @AndrewBastin commented on GitHub (Jan 11, 2020): Well, according to the HTTP spec, you can't exactly have a response without headers, so I don't see why it will become undefined. The only thing is that response can choose to not have a `Content-Type`, but we do handle that case as seen from the above snippet If you could bring into attention a scenario where that is possible, we will refactor the code.
Author
Owner

@kenzyyang commented on GitHub (Jan 12, 2020):

now i can't replicate the problem but i'll tell you immediately the next time.
and it's better to handle the situation where this.response and this.response.headers is undefined.
thanks for your reply

<!-- gh-comment-id:573392998 --> @kenzyyang commented on GitHub (Jan 12, 2020): now i can't replicate the problem but i'll tell you immediately the next time. and it's better to handle the situation where this.response and this.response.headers is undefined. thanks for your reply
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#188
No description provided.