File tree 2 files changed +12
-12
lines changed
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ export default (ctx, inject) => {
181
181
182
182
if ( process . server ) {
183
183
// Don't accept brotli encoding because Node can't parse it
184
- axiosOptions . headers . common [ 'Accept-Encoding ' ] = 'gzip, deflate'
184
+ axiosOptions . headers . common [ 'accept-encoding ' ] = 'gzip, deflate'
185
185
}
186
186
187
187
// Create new axios instance
Original file line number Diff line number Diff line change 6
6
</template >
7
7
8
8
<script >
9
- // This will be intentically shared across requests
10
- let reqCtr = 1
9
+ // This will be intentically shared across requests
10
+ let reqCtr = 1
11
11
12
- export default {
13
- async fetch ({app, route}) {
14
- let doLogin = route .query .login !== undefined
15
- if (doLogin) {
16
- app .$axios .setHeader (' sessionId' , reqCtr++ )
17
- }
18
- },
12
+ export default {
19
13
computed: {
20
14
axiosSessionId () {
21
15
return this .$axios .defaults .headers .common .sessionId
22
16
},
23
17
24
18
axiosEncoding () {
25
- return this .$axios .defaults .headers .common [' Accept-Encoding' ]
19
+ return this .$axios .defaults .headers .common [' accept-encoding' ]
20
+ }
21
+ },
22
+ async fetch ({app, route}) {
23
+ let doLogin = route .query .login !== undefined
24
+ if (doLogin) {
25
+ app .$axios .setHeader (' sessionId' , reqCtr++ )
26
26
}
27
27
}
28
- }
28
+ }
29
29
</script >
You can’t perform that action at this time.
0 commit comments