Fixed characters not being properly encoded, fixed images not being properly appended, more fixes
This commit is contained in:
parent
0bd8905829
commit
4caec5aefa
12 changed files with 14 additions and 7 deletions
|
@ -8,7 +8,7 @@ module.exports = async (object, fromAPI = false) => {
|
|||
if (process.env.API === "true" && !fromAPI) {
|
||||
const params = [];
|
||||
for (const element of Object.keys(object)) {
|
||||
params.push(`${element}=${object[element]}`);
|
||||
params.push(`${element}=${encodeURIComponent(object[element])}`);
|
||||
}
|
||||
const form = new FormData();
|
||||
form.append("image", fs.createReadStream(object.path));
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
FROM alpine:edge
|
||||
|
||||
RUN apk --no-cache upgrade && apk add --no-cache chromium squid sudo libstdc++ harfbuzz nss freetype ttf-freefont wqy-zenhei zlib-dev wait4ports dbus chromium-chromedriver grep
|
||||
RUN apk --no-cache upgrade && apk add --no-cache chromium squid sudo libstdc++ harfbuzz nss freetype ttf-freefont zlib-dev wait4ports dbus chromium-chromedriver grep
|
||||
|
||||
ENV ALL_PROXY "http://localhost:3128"
|
||||
RUN echo -e "\nvisible_hostname esmBot\nforwarded_for delete\nvia off\nfollow_x_forwarded_for deny all \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue