Skip to content

Commit

Permalink
fix httpupgrade headers
Browse files Browse the repository at this point in the history
Co-Authored-By: MHSanaei <ho3ein.sanaei@gmail.com>
  • Loading branch information
alireza0 and MHSanaei committed Apr 17, 2024
1 parent d5477c9 commit cf9e09e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/html/xui/form/stream/stream_httpupgrade.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
<a-input v-model.trim="inbound.stream.httpupgrade.host"></a-input>
</a-form-item>
<a-form-item label='{{ i18n "pages.inbounds.stream.tcp.requestHeader" }}'>
<a-button size="small" @click="inbound.stream.ws.addHeader()">+</a-button>
<a-button size="small" @click="inbound.stream.httpupgrade.addHeader()">+</a-button>
</a-form-item>
<a-form-item :wrapper-col="{span:24}">
<a-input-group compact v-for="(header, index) in inbound.stream.ws.headers">
<a-input-group compact v-for="(header, index) in inbound.stream.httpupgrade.headers">
<a-input style="width: 50%" v-model.trim="header.name" placeholder='{{ i18n "pages.inbounds.stream.general.name"}}'>
<template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template>
</a-input>
<a-input style="width: 50%" v-model.trim="header.value" placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'>
<a-button slot="addonAfter" size="small" @click="inbound.stream.ws.removeHeader(index)">-</a-button>
<a-button slot="addonAfter" size="small" @click="inbound.stream.httpupgrade.removeHeader(index)">-</a-button>
</a-input>
</a-input-group>
</a-form-item>
Expand Down

0 comments on commit cf9e09e

Please sign in to comment.